package cn.edu.zafu.bigdata.llc;

public abstract class Shape {
    // 抽象方法 area()
    public abstract double area();

    // 抽象方法 perimeter()
    public abstract double perimeter();

    // final方法 display()
    public final void display() {
        System.out.println("Shape Type: " + this.getClass().getSimpleName());
        System.out.println("Area: " + area());
        System.out.println("Perimeter: " + perimeter());
    }
}

